﻿Configuration cTalendProjectDeployment
{
    param
    (
        #Talend Project Name
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [String]$TalendProjectName,

        [parameter(Mandatory = $true)]
		[System.String]
		$Url,

		[parameter(Mandatory = $true)]
		[System.String]
		$Path,

		[parameter(Mandatory = $false)]
		[System.String]
		$UserName,

		[parameter(Mandatory = $false)]
		[System.String]
		$Password,

		[parameter(Mandatory = $false)]
		[System.Uint32]
		$Revision

    )
    
    Import-DscResource -ModuleName cSourceControl

    File RootFile1
    {
        DestinationPath = "C:\FileAtRoot1.txt"
        Ensure = "Present"
        Contents = $TalendProjectName
    } 

    cSubversionSynchronization NotCan
    {
        Ensure = "Present"  # You can also set Ensure to "Absent"
        Url = "https://mesf.svn.codeplex.com/svn/Main/ApplicationServices" # Default is "File" but this tells it to look at entire folder
        Path = "D:\Temp\ApplicationServices22222" # This is a path that has source files
    }

} 
